import request from '@/utils/request'
/**
 * @description: 获取导入/出文件dataType
 * @param {*}
 * @return {Promise}
 */
export function getExcelDataType() {
  return request.get(`/base/excel/data-type`)
}
/**
 * Excel 导出
 * @param {*} param
 * @param {*} pageSize
 * @param {*} pageNo
 */
export function excelExport (dataType, param, pageSize, pageNo) {
  const data = {
    dataType,
    pageNo,
    pageSize,
    param: {
      ...param
    }
  }
  return request.post('/base/excel/excel-export', data, { responseType: 'blob' })
}
